<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">

    <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

    <application
        android:name=".JabwaveApp"
        android:allowBackup="true"
        android:dataExtractionRules="@xml/data_extraction_rules"
        android:fullBackupContent="@xml/backup_rules"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/ApplicationTheme.ColorThemes.Default"
        android:usesCleartextTraffic="true"
        tools:targetApi="31">
        <receiver android:name=".core.receivers.JabwaveReceiver" android:exported="false">
            <intent-filter>
                <action android:name="dev.tinelix.jabwave.XMPP_RECEIVE" />
                <action android:name="dev.tinelix.jabwave.TELEGRAM_RECEIVE" />
            </intent-filter>
        </receiver>

        <service
            android:name=".core.services.XMPPService"
            android:exported="false" />

        <service
            android:name=".core.services.TelegramService"
            android:exported="false" />

        <activity
            android:name=".core.activities.MainActivity"
            android:exported="true"
            android:theme="@style/ApplicationTheme.ColorThemes.Default"
            android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mcc|mnc|uiMode">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

            <meta-data
                android:name="android.app.lib_name"
                android:value="" />
        </activity>

        <activity
            android:name=".core.activities.AuthActivity"
            android:exported="true"
            android:theme="@style/ApplicationTheme.ColorThemes.Default"
            android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mcc|mnc|uiMode">
        </activity>

        <activity
            android:name=".core.activities.AppActivity"
            android:exported="true"
            android:theme="@style/ApplicationTheme.ColorThemes.Default"
            android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mcc|mnc|uiMode"
            android:hardwareAccelerated="true">
        </activity>

        <activity
            android:name=".core.activities.MessengerActivity"
            android:exported="true"
            android:theme="@style/ApplicationTheme.ColorThemes.Default"
            android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mcc|mnc|uiMode"
            android:hardwareAccelerated="true">
        </activity>

    </application>

</manifest>
